package controller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
public class urlController {

        @RequestMapping("/index")//页面的url地址
        public String getindex(Model model)//对应函数
        {
            model.addAttribute("name","bigsai");
            return "index";//与templates中index.html对应
        }


}
